//
//  ZBTool.h
//  ZBUitilty
//
//  Created by xzb on 2018/8/22.
//

#import <Foundation/Foundation.h>

#define kSafeObjForKey(_key_ , _dict_, _defaultValue_, ...) [ZBTool zb_safeForKey:_key_ dict:_dict_ defaultValue:(_defaultValue_), ##__VA_ARGS__]

#define kEncode(_kType_) [NSString stringWithCString:@encode(_kType_) encoding:NSUTF8StringEncoding]


@interface ZBTool : NSObject


/**
 一个项目只运行一次;
 */
+ (void)onceEventForKey:(NSString *)key event:(void(^)(void))event;

+ (id)zb_safeForKey:(NSString *)key dict:(NSDictionary *)dict defaultValue:(id)defaultValue, ...;

@end
